//-----------------------------------------------------------------------------
//	File: printf.c
//	Author: hsia
//		bsp of printf using usart
//-----------------------------------------------------------------------------

#include "printf.h"

//-----------------------------------------------------------------------------
//	fputc - printf remap
// 		@return: The send data.
//-----------------------------------------------------------------------------
int fputc(int ch, FILE *f)
{
	usart3_send(ch);
	return ch;
}

//-----------------------------------------------------------------------------
//	fputc - printf remap
// 		@return: The send data.
//-----------------------------------------------------------------------------
int fgetc(FILE *f)
{
	return usart3_receive();
}
